package com.guanzi.big_data_mq_process.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum MessageStatusEnum {

    // 0-待发送 1-已发送 2-已完成
    WAIT_SENT(0, "待发送"),
    SENT(1, "已发送"),
    COMPLETE(2, "已完成");

    @EnumValue
    private Integer code;

    @JsonValue
    private String msg;

    MessageStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
